﻿
    using System;
    using System.Runtime.InteropServices;
namespace YoucaiReader.Helper.Drawing
{
    [StructLayout(LayoutKind.Sequential)]
    internal struct StringMeasurements
    {
        public readonly float[] Widths;
        public readonly float Width;
        public readonly float Height;
        public readonly float Ascent;
        public readonly float Baseline;
        public readonly float LineHeight;
        public readonly float LineWidth;
        internal StringMeasurements(float width, float height, float lineWidth, float lineHeight, float baseline, float ascent, float[] widths)
        {
            this.Widths = widths;
            this.Height = height;
            this.Width = width;
            this.LineHeight = lineHeight;
            this.LineWidth = lineWidth;
            this.Ascent = ascent;
            this.Baseline = baseline;
        }
    }
}

